package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

public class UserAgentDTO implements Parcelable {

    public String userId;
    public String agentId;
    public String apiType;
    public String token;
    public String url;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userId);
        dest.writeString(this.agentId);
        dest.writeString(this.apiType);
        dest.writeString(this.token);
        dest.writeString(this.url);
    }

    public UserAgentDTO() {

    }

    protected UserAgentDTO(Parcel in) {
        this.userId = in.readString();
        this.agentId = in.readString();
        this.apiType = in.readString();
        this.token = in.readString();
        this.url = in.readString();
    }

    public static final Creator<UserAgentDTO> CREATOR = new Creator<UserAgentDTO>() {
        public UserAgentDTO createFromParcel(Parcel source) {
            return new UserAgentDTO(source);
        }

        public UserAgentDTO[] newArray(int size) {
            return new UserAgentDTO[size];
        }
    };

    @Override
    public String toString() {
        return "UserAgentDTO{" +
                "userId='" + userId + '\'' +
                ", agentId='" + agentId + '\'' +
                ", apiType='" + apiType + '\'' +
                ", token='" + token + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
